package com.probox.common.entity.domain.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户权益对象 customer_privilege
 *
 * @author zsy
 * @date 2021-05-27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("customer_privilege")
@ApiModel(description = "客户权益类")
public class CustomerPrivilege implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 客户权益ID
     */
    //默认主键自增
    @ApiModelProperty(value = "客户权益ID")
    @TableId(value = "CUSTOMER_PRIVILEGE_UID", type = IdType.AUTO)
    private Long customerPrivilegeUid;
    /**
     * 平台ID
     */
    @ApiModelProperty(value = "平台ID")
    @Excel(name = "平台ID")
    private Long platformId;
    /**
     * 权益ID
     */
    @ApiModelProperty(value = "权益ID")
    @Excel(name = "权益ID")
    private Long privilegeUid;
    /**
     * 等级ID
     */
    @ApiModelProperty(value = "等级ID")
    @Excel(name = "等级ID")
    private Long levelUid;
    /**
     * 是否升级礼包（0：权益,1:升级礼包）
     */
    @Excel(name = "是否升级礼包", readConverterExp = "0=：权益,1:升级礼包")
    private String isUpgrade;
    /**
     * 权益对应的值
     */
    @ApiModelProperty(value = "权益对应的值")
    @Excel(name = "权益对应的值")
    private String privilegeValue;
    /**
     * 权益状态(1：有效，0：无效)
     */
    @ApiModelProperty(value = "权益状态")
    @Excel(name = "权益状态(1：有效，0：无效)")
    private String privilegeStatus;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Excel(name = "创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @Excel(name = "修改人")
    private Long updateUser;
    /**
     * 状态，1有效，0无效，-1删除
     */
    @ApiModelProperty(value = "状态")
    @Excel(name = "状态，1有效，0无效，-1删除")
    private String dataStatus;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "修改人名称")
    @Excel(name = "修改人名称")
    private String updateName;
    @TableField(exist = false)
    private Long customeRgrade;
}
